package com.ruoyi.procurementmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.procurementmanagement.mapper.EsPurOrderMapper;
import com.ruoyi.procurementmanagement.domain.EsPurOrder;
import com.ruoyi.procurementmanagement.service.IEsPurOrderService;

/**
 * 采购订单跟踪表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-08
 */
@Service
public class EsPurOrderServiceImpl implements IEsPurOrderService 
{
    @Autowired
    private EsPurOrderMapper esPurOrderMapper;

    /**
     * 查询采购订单跟踪表
     * 
     * @param orderId 采购订单跟踪表主键
     * @return 采购订单跟踪表
     */
    @Override
    public EsPurOrder selectEsPurOrderByOrderId(Long orderId)
    {
        return esPurOrderMapper.selectEsPurOrderByOrderId(orderId);
    }

    /**
     * 查询采购订单跟踪表列表
     * 
     * @param esPurOrder 采购订单跟踪表
     * @return 采购订单跟踪表
     */
    @Override
    public List<EsPurOrder> selectEsPurOrderList(EsPurOrder esPurOrder)
    {
        return esPurOrderMapper.selectEsPurOrderList(esPurOrder);
    }

    /**
     * 新增采购订单跟踪表
     * 
     * @param esPurOrder 采购订单跟踪表
     * @return 结果
     */
    @Override
    public int insertEsPurOrder(EsPurOrder esPurOrder)
    {
        return esPurOrderMapper.insertEsPurOrder(esPurOrder);
    }

    /**
     * 修改采购订单跟踪表
     * 
     * @param esPurOrder 采购订单跟踪表
     * @return 结果
     */
    @Override
    public int updateEsPurOrder(EsPurOrder esPurOrder)
    {
        return esPurOrderMapper.updateEsPurOrder(esPurOrder);
    }

    /**
     * 批量删除采购订单跟踪表
     * 
     * @param orderIds 需要删除的采购订单跟踪表主键
     * @return 结果
     */
    @Override
    public int deleteEsPurOrderByOrderIds(Long[] orderIds)
    {
        return esPurOrderMapper.deleteEsPurOrderByOrderIds(orderIds);
    }

    /**
     * 删除采购订单跟踪表信息
     * 
     * @param orderId 采购订单跟踪表主键
     * @return 结果
     */
    @Override
    public int deleteEsPurOrderByOrderId(Long orderId)
    {
        return esPurOrderMapper.deleteEsPurOrderByOrderId(orderId);
    }
}
